package com.tianji.learning.service;

import com.tianji.api.dto.trade.OrderBasicDTO;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.LearningLessonVO;
import com.tianji.learning.domain.vo.LearningPlanPageVO;

import java.util.List;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author Aimer
 * @since 2025-11-04
 */
public interface ILearningLessonService extends IService<LearningLesson> {



    /**
     * 添加课程表信息
     * @param orderBasicDTO
     */
    void addLesson(OrderBasicDTO orderBasicDTO);

    PageDTO<LearningLessonVO> getLearningLessonPage(PageQuery pageQuery);

    void deleteLesson(Long userId, Long courseId);

    Long isLessonValid(Long userId, Long courseId);

    LearningLessonVO getUserLessonCourseStatus(Long userId, Long courseId);

    Integer getCourseNumber(Long courseId);

    void createCourseStudyPlans(Long courseId, Integer freq);

    LearningPlanPageVO queryMyPlans(PageQuery pageQuery);

    LearningLessonVO queryMyCurrentLesson();
}
